Dynomotion

Group: DynoMotion Message: 9429 From: rjreese29@ymail.com Date: 4/30/2014
Subject: Move and step on step response screen
Hi, Working on my first axis here and not getting a response on the motor or my bob when I put values in and press the move button. It graphs a variety of graphs that are respective of my input values, the axis screen dro moves. When I press the step button, I get a single step on my motor, and the bob. I have read most of the manual for step response screen and these buttons, but just can't get it to 'move' or jog. This is for an A axis on channel 3. Thanks for your assistance!!!! Rob
Group: DynoMotion Message: 9430 From: Tom Kerekes Date: 4/30/2014
Subject: Re: Move and step on step response screen
Hi Rob,

What kind of drives do you have?  What are the input requirements?  How are they wired?  What are your configuration settings?  Do the other axes work?

Regards
TK

Group: DynoMotion Message: 9431 From: Rjreese29 Date: 4/30/2014
Subject: Re: Move and step on step response screen
Hi Tom,
I have a step/dir ttl pacific scientific drive 6410 drive. It is/has worked in the past with my c23 bob and  ss.  I have take out the sstepper and replaced it with the kflop. The intermediary between the kflop and c23 is a small gang of 8 channel bidirectional logic level shifters. And these shifters are testing good with my probe.

My direction pins completely work in software and hardware. But the step pins don't work in both hardware or software (from what I can tell/know/don't know). Back to my train of thought... The intermediary between the bob and kflop includes these level shifters. I have used the logic shifters and bypassed them also. When I tested with the shifters I used output channel 11 (3+8), without the level shifter I used step/dir channel 3. This resulted in no good results (/not seeing my step led work at slower velocities). 
The step led is always on. The only time the step led has worked is when I click the "step" button on step response screen in kmotion. It is a brief on/off/on that is respective of the 'time' box in this window and the motor moves only 1 step. The 'move' button has no effect on my hardware.
I need to get out the logic probe again to test it again.

Axis are enabled and the below is in my init program amongst other c configurations

FPGA(STEP_PULSE_LENGTH_ADD)=32;  // set the pulse time to ~ 2us

This probably doesn't give you enough info, so I will have to send you more info later as I am not in front of my computer...

I have stripped down the init c program for all other axis and unplugged them to try to focus on this axis.

I am also working with Arturo as he is currently making a cross compatible board to be able to interface the c23 and the kflop. I am in no rush, so I will be looking forward to his board such that I can get rid of these level shifters.

I'll have to get back to you with my c init file so I can provide you more config info.

Is there any other configuration info you would want to see?

Great thanks to you Tom!!


Rob

On Apr 30, 2014, at 8:04 AM, Tom Kerekes <tk@...> wrote:

 

Hi Rob,

What kind of drives do you have?  What are the input requirements?  How are they wired?  What are your configuration settings?  Do the other axes work?

Regards
TK

Group: DynoMotion Message: 9432 From: Tom Kerekes Date: 4/30/2014
Subject: Re: Move and step on step response screen
Hi Rob,

I Googled and found this:

http://www.pushcorp.com/Manuals/6410-user-manual.pdf

This manual states that a Direction change requires a 50us setup time before the first step pulse.  KFLOP only provides 4us so that could be a problem.  But that would not cause the motor not to move at all like you are describing.  It would cause a possible single microstep move in the wrong direction when the direction reverses.

Pushing "Step" on the step response screen isn't really useful for non-servo type systems like yours.  It would cause a big jump at max step rate (2.5MHz) to the new position.  In fact at that rate and pulse size all the step pulses will overlap to form just one big pulse - which probably explains what you are seeing one step.

It isn't really clear what steps you are performing. Output Channel 11 should be correct for Step/Dir Generator #3 in TTL mode.  But is that what you are entering in the Config/Flash Screen?  Or in the C Program.  When pushing the Move button all the settings in the KMotion Screens are written down to KFLOP which would overwrite whatever a C program might have configured.

Regards
TK  

Group: DynoMotion Message: 9433 From: Rjreese29 Date: 4/30/2014
Subject: Re: Move and step on step response screen
Read below my integrated responses.
Thanks Tom!!!

Rob

On Apr 30, 2014, at 1:22 PM, Tom Kerekes <tk@...> wrote:

 

Hi Rob,

I Googled and found this:


This manual states that a Direction change requires a 50us setup time before the first step pulse.  KFLOP only provides 4us so that could be a problem.  But that would not cause the motor not to move at all like you are describing.  It would cause a possible single microstep move in the wrong direction when the direction reverses.
This axis is has an encoder, but is being setup as openloop. Thanks for pointing that out.My vision was to close the loop, but not until I get it to move:). My idea was to close the loop, if the loop is closed, and I don't have high expectations of running it at extremely high response time/speeds, would it/may it still be ok? 

Pushing "Step" on the step response screen isn't really useful for non-servo type systems like yours.  It would cause a big jump at max step rate (2.5MHz) to the new position.  In fact at that rate and pulse size all the step pulses will overlap to form just one big pulse - which probably explains what you are seeing one step.
Thanks for clarifying:) makes sense.

It isn't really clear what steps you are performing. Output Channel 11 should be correct for Step/Dir Generator #3 in TTL mode.  But is that what you are entering in the Config/Flash Screen?  Or in the C Program.  When pushing the Move button all the settings in the KMotion Screens are written down to KFLOP which would overwrite whatever a C program might have configured.
I have downloaded these settings in the config/flash screen, changed the values in init.c and flashed (standalone). Flashing the standalone mode may have been pedantic, but I am trying to be consistent in the variety of places to change settings. Thanks for clarifying the priority of what gets overridden.


Regards
TK  

Group: DynoMotion Message: 9434 From: Tom Kerekes Date: 4/30/2014
Subject: Re: Move and step on step response screen
Hi Rob,

Regarding Direction Setup Time: It shouldn't really make a difference if the system moves fast or slow.  The problem occurs when the system reverses and where the speed would be very slow regardless.  Closed loop could potentially correct the problem.  If a micro step is lost or made in the wrong direction more will be generated until the encoder eventually reads the correct position.  One problem with this is that the missed steps could accumulate over time to be a very big value.  So even though the axis would always be in the right place, the commanded position may be far off.  This will prevent you from relying on following error to detect a stall, crash, or fault. 

If you have the correct setting in the Config/Flash Screen and push "Move" on the Step Response Screen then the Parameters should be downloaded and set properly in KFLOP.  So I can't see why it isn't working.  We don't recommend Flashing parameters and Programs into KFLOP as it becomes confusing what has been changed.  It is better to just start with a clean slate and set everything as required.  There is not usually any benefit to Flashing KFLOP when a PC will always be available to set things automatically.  Try Flashing "New Version" to revert everything in KFLOP to default.

You might also test our hardware by just toggling the step signal using the Digital I/O Screen.  You must cycle power on KFLOP for that to work. If the pins have been configured to a Step/Dir Generator they will not toggle as GPIO.  Of course you must toggle many time before you will see much movement.

Regards
TK

 

Group: DynoMotion Message: 9437 From: Rjreese29 Date: 5/1/2014
Subject: Re: Move and step on step response screen
I'll have read and digest the rest of your email later,.. Thanks.

But wanted to let you know it is working. The move button was having an effect on my step led light this morning. When it actually started working is when I set the init.c from:
FPGA(STEP_PULSE_LENGTH_ADD)=32;
To
FPGA(STEP_PULSE_LENGTH_ADD)=32 + 0x80;

Everything is 'move' and 'step' as normally would be expected.

Thanks Tom!!

Rob

On Apr 30, 2014, at 5:32 PM, Tom Kerekes <tk@...> wrote:

 

Hi Rob,

Regarding Direction Setup Time: It shouldn't really make a difference if the system moves fast or slow.  The problem occurs when the system reverses and where the speed would be very slow regardless.  Closed loop could potentially correct the problem.  If a micro step is lost or made in the wrong direction more will be generated until the encoder eventually reads the correct position.  One problem with this is that the missed steps could accumulate over time to be a very big value.  So even though the axis would always be in the right place, the commanded position may be far off.  This will prevent you from relying on following error to detect a stall, crash, or fault. 

If you have the correct setting in the Config/Flash Screen and push "Move" on the Step Response Screen then the Parameters should be downloaded and set properly in KFLOP.  So I can't see why it isn't working.  We don't recommend Flashing parameters and Programs into KFLOP as it becomes confusing what has been changed.  It is better to just start with a clean slate and set everything as required.  There is not usually any benefit to Flashing KFLOP when a PC will always be available to set things automatically.  Try Flashing "New Version" to revert everything in KFLOP to default.

You might also test our hardware by just toggling the step signal using the Digital I/O Screen.  You must cycle power on KFLOP for that to work. If the pins have been configured to a Step/Dir Generator they will not toggle as GPIO.  Of course you must toggle many time before you will see much movement.

Regards
TK

 

Group: DynoMotion Message: 9438 From: Tom Kerekes Date: 5/1/2014
Subject: Re: Move and step on step response screen
Hi Rob,

Looks like that drive doesn't like negative going pulses.  Strange most drives prefer that.

Thanks for letting us know.
Regards
TK